home *** CD-ROM | disk | FTP | other *** search
- Path: news.iag.net!news
- From: jatmon@iag.net (John R Buchan)
- Newsgroups: comp.lang.c
- Subject: Re: Question!@#!
- Date: 15 Jan 1996 16:04:33 GMT
- Organization: Internet Access Group, Orlando, Florida
- Message-ID: <4ddtuh$1a1@news.iag.net>
- References: <4dcejq$2un@venus.senecac.on.ca>
- NNTP-Posting-Host: pm1-orl26.iag.net
- X-Newsreader: WinVN 0.99.7
-
- In article <4dcejq$2un@venus.senecac.on.ca>, cweselak@learn.senecac.on.ca
- says...
- ->
- ->
- ->I have a very Simple question.. well, it should be simple for 'alot' of
- ->you reading this newsgroup..
- ->
- ->anyways.
- ->
- ->I have created a program that asks THE users for his name, then writes it
- ->to a file, the file is called name.txt..
- ->
- ->Evertime this program is executed, the file name.txt get's overwritten.
- ->
- ->How can i keep this file, name.txt, so that i can eventually have a
- ->listing of all users who ran my program???
-
- You don't state, which function you are using to open the file. You should
- be using the ansi fopen, though some people insist on using others.... :-)
-
- Just change the mode to append "a", instead of write "w".
-
- --
- John R Buchan -:|:- Looking for that elusive FAQ? ftp to:
- jatmon@mail.iag.net -:|:- rtfm.mit.edu /pub/usenet-by-group/....
-
-